# __coding:utf-8__
from urllib.request import urlopen;
from bs4 import BeautifulSoup;

# html = urlopen('http://test.furong.link');
# bs_obj = BeautifulSoup(html.read(), 'lxml');
# print(bs_obj.head);
# try:
#     print(111);
# except ConnectionError as e:
#     print(e);
html = urlopen('http://pl.ifeng.com/');
bs_obj = BeautifulSoup(html.read(), 'lxml');

lists = bs_obj.find_all('div', {'class': 'CrBox03ConTop'});
for list in lists:
    print(list.h2)
